package com.zxx.ssm.model.biz;

import com.zxx.ssm.dao.Student;

public class StudentBiz extends Student {
    private Integer oralNum;

    private Integer listenNum;

    private Integer readNum;

    private Integer writeNum;

    private Integer totalAppNum;

    private Integer passAppNum;

    private String agencyName;

    public String getAgencyName() {
        return agencyName;
    }

    public void setAgencyName(String agencyName) {
        this.agencyName = agencyName;
    }

    public Integer getOralNum() {
        return oralNum;
    }

    public void setOralNum(Integer oralNum) {
        this.oralNum = oralNum;
    }

    public Integer getListenNum() {
        return listenNum;
    }

    public void setListenNum(Integer listenNum) {
        this.listenNum = listenNum;
    }

    public Integer getReadNum() {
        return readNum;
    }

    public void setReadNum(Integer readNum) {
        this.readNum = readNum;
    }

    public Integer getWriteNum() {
        return writeNum;
    }

    public void setWriteNum(Integer writeNum) {
        this.writeNum = writeNum;
    }

    public Integer getTotalAppNum() {
        return totalAppNum;
    }

    public void setTotalAppNum(Integer totalAppNum) {
        this.totalAppNum = totalAppNum;
    }

    public Integer getPassAppNum() {
        return passAppNum;
    }

    public void setPassAppNum(Integer passAppNum) {
        this.passAppNum = passAppNum;
    }

    public String getOralFormat() {
        return oralNum + "/" + getApplyOralCount();
    }

    public String getListenFormat() {
        return listenNum + "/" + getApplyListenCount();
    }

    public String getReadFormat() {
        return readNum + "/" + getApplyReadCount();
    }

    public String getWriteFormat() {
        return writeNum + "/" + getApplyWriteCount();
    }

    public String getTotalFormat() {
        int total = getApplyOralCount() + getApplyReadCount() + getApplyWriteCount() + getApplyListenCount();
        int alreadyTotal = oralNum + listenNum + readNum + writeNum;
        return alreadyTotal + "/" + total;
    }

    public String getApplicationFormat() {
        return passAppNum + "/" + totalAppNum;
    }

    public String getClassCountFormat(){
        return getOralFormat()+", "+getListenFormat()+", "+getReadFormat()+", "+getWriteFormat();
    }

    public String getAgencyNameFormat(){
        if(agencyName==null)
            return "无";
        else
            return agencyName;
    }
}